package com.team.ai.controller;

import cn.dev33.satoken.stp.StpUtil;
import com.team.ai.entity.ResultEntity;
import com.team.ai.service.PaperService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@CrossOrigin//跨域
@RestController//遵循RestFul
@RequestMapping("v2/Paper/")
public class PaperController {
    @Resource
    PaperService paperService;
    @PostMapping("getPaper")
    public String getPaper(
            @RequestParam(value = "paperName") String paperName) {
        return paperService.selectPaper(paperName);
    }
}
